<!DOCTYPE html>
<html lang="en">
<head> <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Register</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/register.css') }}">
</head>
<body>
<section id="register-form">
    <h1>REGISTER</h1>
    <form action="{{ url_for('auth.register') }}" method="POST">
        <div class="input-wrap in-1">
            <input type="text" id="username" name="username" placeholder="Your username" spellcheck="false" required>
            <i class="fa-solid fa-user"></i>
        </div>

        <div class="input-wrap in-2">
            <input type="password" id="password" name="password" placeholder="Your password" spellcheck="false" required>
            <i class="fa-solid fa-lock"></i>
        </div>

        <div class="input-wrap in-3">
            <input type="password" id="confirm_password" name="confirm_password" placeholder="Confirm password" spellcheck="false" required>
            <i class="fa-solid fa-lock"></i>
        </div>

        <button type="submit">Register</button>

        <p class="reg">
            Already have an account?
            <a href="{{ url_for('auth.login') }}">Login</a>
        </p>
    </form>
</section>